package cn.pli.bike.ui;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.ImageView;
import android.widget.TextView;

import com.framemodule.base.BaseDelegate;
import com.framemodule.base.ImageLoaderHelper;
import com.framemodule.utils.CommonUtils;
import com.nostra13.universalimageloader.core.ImageLoader;

import java.util.ArrayList;
import java.util.List;

import cn.pli.bike.R;
import cn.pli.bike.bean.UserBean;
import cn.pli.bike.bean.UserInfoSetBean;

/**
 * Created by shangdongzhou on 2017/11/8.
 */

public class CallCenterDelegate extends BaseDelegate {
    private TextView tvTitle;
    private RecyclerView recyclerView;
    private CallCenterMainAdapter callCenterMainAdapter;


    @Override
    public void initTitleBar() {

    }

    @Override
    public int getRootLayoutId() {
        return R.layout.activity_call_center;
    }

    @Override
    public void initWidget() {
        super.initWidget();
        recyclerView = get(R.id.recycler_call_center);
        recyclerView.setLayoutManager(new LinearLayoutManager(this.getActivity()));
        callCenterMainAdapter = new CallCenterMainAdapter(recyclerView);
        recyclerView.setAdapter(callCenterMainAdapter);

        tvTitle = get(R.id.tv_title);
        tvTitle.setText(R.string.service_center);
    }

    public RecyclerView getRecyclerView() {
        return recyclerView;
    }

    public CallCenterMainAdapter getCallCenterMainAdapter() {
        return callCenterMainAdapter;
    }
}
